package com.agritech.strategy;

import com.agritech.observer.EnvironmentData;

/**
 * 紧急路径规划策略
 */
public class EmergencyPathStrategy implements PathPlanningStrategy {
    @Override
    public String calculatePath(double currentLat, double currentLon,
                                double targetLat, double targetLon,
                                EnvironmentData environmentData) {
        return String.format("使用紧急避障路径规划：从(%.2f, %.2f)到(%.2f, %.2f)，考虑环境因素：%s",
                currentLat, currentLon, targetLat, targetLon,
                environmentData.toString());
    }
}